package com.fzz.serviceImpl;

import com.fzz.dao.UserMapping;
import com.fzz.domain.User;
import com.fzz.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapping userMapping;

    //用户登录
    @Override
    public User userLogin(String username, String password) {

        return userMapping.userLogin(username,password);
    }

    //注册用户
    @Override
    public Integer userRegister(User user) {

        return userMapping.userRegister(user);
    }

}
